<template>
  <div class="login">
    <div style="width: 500px;height: 300px;border: 1px solid #ccc;border-radius: 10px">
      <div data-title style="display: flex;justify-content: center">
        <h2>登录</h2>
      </div>
      <div data-username style="display: flex;justify-content: center;padding: 0 10px">
        <span style="width: 80px;line-height: 30px">用户名：</span>
        <el-input size="small" v-model="username" @keyup.enter="loginBtn"></el-input>
      </div>
      <div data-password style="display: flex;justify-content: center;padding: 0 10px;margin-top: 40px">
        <span style="width: 80px;line-height: 30px">密码：</span>
        <el-input size="small" v-model="password" @keyup.enter="loginBtn"></el-input>
      </div>
      <div data-login style="display: flex;justify-content: center;margin-top: 40px">
        <el-button size="medium" type="primary" @click="loginBtn">登录</el-button>
      </div>
    </div>
  </div>
</template>

<script>
import Login from "./Login";

export default {
  name: "Login",
  setup() {
    return {
      ...Login()
    }
  }
}
</script>

<style scoped>
.login {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}
</style>